@extends('admin.layout')
@section('content')

    @if ($errors->any())
        <div class="layui-card">
            <div class="layui-card-header">提示！</div>
            <div class="layui-card-body">
                @foreach ($errors->all() as $error)
                <p>{{ $error }}</p>
                @endforeach
            </div>
        </div>
    @endif

    <form action="{{route('admin.posts.update',$info->id??0)}}" method="post"  class="layui-form">

    <div class="layui-card">
        <div class="layui-card-header">修改文章</div>
        <div class="layui-card-body">
               @include('admin.posts._form')
                {{ method_field('put') }}

        </div>
    </div>
    @include('admin.posts.custom_field')
    </form>
@endsection